package com.tan.steamship.controller;

import com.tan.steamship.common.Result;
import com.tan.steamship.domain.CarouselPo;
import com.tan.steamship.service.CarouselService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @description: 轮播图
 * @author: longshifu
 * @time: 2024/12/10 21:04
 */
@RestController
//@RequestMapping("/carousel/v1")
public class CarouselController {
    @Autowired
    private CarouselService carouselService;

    @GetMapping("/resources/carousel")
    public Result carousels() {
        List<CarouselPo> carousels = carouselService.getCarouselList();
        return Result.success(carousels);
    }

}
